package com.yunao.web.form;

import lombok.Data;
import lombok.Getter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

@Data
public class AloneReportForm {

    private String aid;
    @NotBlank(message = "报告名称不能为空")
    @Length(min = 2,max = 15,message = "报告名称长度不能小于2大于15")
    private String name;
    @NotBlank(message = "关键词不能为空")
    private String keyword;
    private String remword;
    private String location;
    private String mediaType;
    private String emotion;
    private String title;
    private String author;
    private String webattr;
    @NotBlank(message = "请选择报告类型")
    private String manner;
    @Email
    @NotBlank(message = "请填写报告发送地址")
    private String addr;
    
}
